mergMKAddAnnotation
Type
function
Summary
Returns an id for the annotation that was created
Syntax
mergMKAddAnnotation(<pCoordinate>, <pTitle>, [<pSubtitle>], [<pShowCallout>], [<pAnimateDrop>], [<pPinColor>], [<pDraggable>], [<pCalloutImage>], [<pShowCalloutButton>])
Description
The id will be included as a parameter in annotation interaction callback messages.
Parameters
Name | Type | Description |
---|---|---|
pCoordinate | a location in decimal coordinates (latitude,longitude) | |
pTitle | the title for the annotation (shown on the callout) | |
pSubtitle | (optional with "" default) the subtitle for the annotation (shown on the callout) | |
pShowCallout | (optional with "true" default) true or false to show the callout when the user touches the annotation with true as default
| |
pAnimateDrop | (optional with "true" default) true or false to animate the annotation drop with true as default
| |
pPinColor | (optional with "red" default) one of:|red (default)|purple|green
| |
pDraggable | (optional with "false" default) true or false to enable drag and drop with false as default
| |
pCalloutImage | (optional with optionally default) optionally add an image to the left side of the accessory view (32x32) | |
pShowCalloutButton | (optional with "true" default) true or false to show the button on the right of the callout
|
Examples
put mergMKAddAnnotation(mergMKGet("center coordinate"),"Dig Here!") into tAnnotationID
Compatibility and Support
Introduced
LiveCode 8.0
OS
ios
Platforms
mobile